function Load() {
    var loadElement = "<div class=\"loading\" style='width: 40%;height: 6px;position: fixed;top: 50%;left: -50%;background: #333;z-index: 999;'></div>\n" +
        "<div class=\"shadow\" style='position: fixed;width: 100%;height: 100%;z-index: 998;background: white;'></div>"

    document.write(loadElement)

    function animation() {
        $(".loading").animate({left: "100%"}, 800, 'linear', function () {
            //复原
            $(".loading").css("left", "-50%")
        });
    }

    var startDate = new Date().getTime()
    animation()
    var interval = setInterval(function () {
        animation()
    }, 800)

    $(document).ready(function () {
        if ((new Date().getTime() - startDate) < 800) {
            setTimeout(function () {
                clearInterval(interval)
                $(".loading").hide()
                $(".shadow").hide()
            }, 800)
        } else {
            clearInterval(interval)
            $(".loading").hide()
            $(".shadow").hide()
        }
    })

}
